package sctu.edu.java.year2016.team04.yanghuilin.day20160525.chapter7_1;

/**
 * Created by dell on 2016/5/25.
 */
public class Phone {
    //定义成员变量（属性）


    private float screen;
    float cpu = 1.4f;

    //定义成员方法

    void call(){
        float screen = 5.0f;
        int No = 12345;
        System.out.println("Phone可以打电话,电话号码是：" +No);
        System.out.println("Phone的显示屏大小为：" +screen);
    }

    void sendMessage(){
        System.out.println("Phone可以发送短信");
    }
}
